package com.chf.control;

import com.chf.Bean.UserInfoBean;
import com.chf.model.MyModel;
import com.chf.utils.MyUtils;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.util.List;

@WebServlet(name = "UserInfoUpdateServlet", value = "/UserInfoUpdateServlet")
public class UserInfoUpdateServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String id = req.getParameter("id");
        UserInfoBean userInfoBean = MyModel.SeleteUserInfoById(id);
        req.getSession().setAttribute("userInfoBean",userInfoBean);
        req.getRequestDispatcher("WEB-INF/viewpages/userInfoB/UserInfoUpdate.jsp").forward(req,resp);
    }
}
